Optimal. Leaf size=139 \[ -\frac {i e^{-i (a+b x)}}{2 b}-\frac {i e^{i (a+b x)}}{2 b}+\frac {i e^{-i (a+b x)} \, _2F_1\left (1,-\frac {b}{2 d};1-\frac {b}{2 d};e^{2 i (c+d x)}\right )}{b}+\frac {i e^{i (a+b x)} \, _2F_1\left (1,\frac {b}{2 d};1+\frac {b}{2 d};e^{2 i (c+d x)}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 139, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 3, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {4655, 2225,
2283} \begin {gather*} \frac {i e^{-i (a+b x)} \, _2F_1\left (1,-\frac {b}{2 d};1-\frac {b}{2 d};e^{2 i (c+d x)}\right )}{b}+\frac {i e^{i (a+b x)} \, _2F_1\left (1,\frac {b}{2 d};\frac {b}{2 d}+1;e^{2 i (c+d x)}\right )}{b}-\frac {i e^{-i (a+b x)}}{2 b}-\frac {i e^{i (a+b x)}}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2225
Rule 2283
Rule 4655
Rubi steps
\begin {align*} \int \cot (c+d x) \sin (a+b x) \, dx &=\int \left (-\frac {1}{2} e^{-i (a+b x)}+\frac {1}{2} e^{i (a+b x)}+\frac {e^{-i (a+b x)}}{1-e^{2 i (c+d x)}}-\frac {e^{i (a+b x)}}{1-e^{2 i (c+d x)}}\right ) \, dx\\ &=-\left (\frac {1}{2} \int e^{-i (a+b x)} \, dx\right )+\frac {1}{2} \int e^{i (a+b x)} \, dx+\int \frac {e^{-i (a+b x)}}{1-e^{2 i (c+d x)}} \, dx-\int \frac {e^{i (a+b x)}}{1-e^{2 i (c+d x)}} \, dx\\ &=-\frac {i e^{-i (a+b x)}}{2 b}-\frac {i e^{i (a+b x)}}{2 b}+\frac {i e^{-i (a+b x)} \, _2F_1\left (1,-\frac {b}{2 d};1-\frac {b}{2 d};e^{2 i (c+d x)}\right )}{b}+\frac {i e^{i (a+b x)} \, _2F_1\left (1,\frac {b}{2 d};1+\frac {b}{2 d};e^{2 i (c+d x)}\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.14, size = 260, normalized size = 1.87 \begin {gather*} \frac {-\cos (a) \cos (b x) \cot (c)-\frac {i e^{-i (a-2 c+b x)} \left (b e^{2 i d x} \, _2F_1\left (1,1-\frac {b}{2 d};2-\frac {b}{2 d};e^{2 i (c+d x)}\right )-(b-2 d) \, _2F_1\left (1,-\frac {b}{2 d};1-\frac {b}{2 d};e^{2 i (c+d x)}\right )\right )}{(b-2 d) \left (-1+e^{2 i c}\right )}-\frac {i e^{i (a+2 c+b x)} \left (b e^{2 i d x} \, _2F_1\left (1,1+\frac {b}{2 d};2+\frac {b}{2 d};e^{2 i (c+d x)}\right )-(b+2 d) \, _2F_1\left (1,\frac {b}{2 d};1+\frac {b}{2 d};e^{2 i (c+d x)}\right )\right )}{(b+2 d) \left (-1+e^{2 i c}\right )}+\cot (c) \sin (a) \sin (b x)}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \cot \left (d x +c \right ) \sin \left (b x +a \right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sin {\left (a + b x \right )} \cot {\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \mathrm {cot}\left (c+d\,x\right )\,\sin \left (a+b\,x\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________